<!DOCTYPE html>
<html>
<head>
    <title>字典管理</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">文件路径</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="propCodeGenerator.filePath" placeholder="文件路径"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">资源类型</div>
                <div class="col-sm-10">
                    <label class="radio-inline" v-for="type in typeList">
                        <input type="radio" name="generatorType"  :value="type.value" v-model="propCodeGenerator.generatorType"/> {{type.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">目标语言</div>
                <div class="col-sm-10">
                    <label v-for="language in languageTypeList" class="checkbox-inline">
                        <input type="checkbox" :value="language.value" v-model="propCodeGenerator.languageTypeList"/> {{language.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">当前语言</div>
                <div class="col-sm-10">
                    <label class="radio-inline" v-for="language in languageTypeList">
                        <input type="radio" name="currentLanguage"  :value="language.value" v-model="propCodeGenerator.currentLanguage"/> {{language.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">翻译方式</div>
                <div class="col-sm-10">
                    <label class="radio-inline" v-for="translateType in translateTypeList">
                        <input type="radio" name="translateType"  :value="translateType.value" v-model="propCodeGenerator.translateType"/> {{translateType.label}}
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="save" value="确定"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/static/js/modules/code/propCodeGenerator.js?_${.now?long}"></script>
</body>
</html>